package com.punch.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.punch.course.model.StudentCourseSchedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * CourseTeachingMapper-学生上课课表 mapper
 *
 * @author xiaol
 * @version 1.0.0
 * @since 2020/7/14 10:51
 */
@Mapper
public interface StudentCourseScheduleMapper extends BaseMapper<StudentCourseSchedule> {

    /**
     * 查找当天学生id参加课程列表
     *
     * @param schoolId  学校id
     * @param stuIdList 学生id列表
     * @param now       当前时间
     * @return List<StudentCourseSchedule>
     */
    List<StudentCourseSchedule> selectByStuIds(@Param("schoolId") Long schoolId, @Param("stuIdList") List<Long> stuIdList, @Param("now") LocalDate now);
}
